package com.ds.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ds.example.mapper.DsUserMapper;
import com.ds.example.service.DsUserService;
import com.ds.model.model.DsUserEntity;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("dsUserService")
public class DsUserServiceImpl extends ServiceImpl<DsUserMapper, DsUserEntity> implements DsUserService {


    @Override
    public DsUserEntity getUserByPhone(String phone) {
        DsUserEntity dsUserEntity = baseMapper.selectOne(new LambdaQueryWrapper<DsUserEntity>().eq(DsUserEntity::getPhone, phone));

        return dsUserEntity;
    }
}
